package com.deelete.springcloud.service.impl;

import com.deelete.springcloud.mapper.StorageMapper;
import com.deelete.springcloud.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StorageServiceImpl implements StorageService {

    @Resource
    private StorageMapper storageMapper;

    @Override
    public Boolean createStorage(Long productId, Integer count) {
        return storageMapper.createStorage(productId,count)>0;
    }
}
